package com.yonyou.sto.modules.ims.controller;


import com.yonyou.sto.common.api.CommonResult;
import com.yonyou.sto.modules.ims.dto.ImsPartySelectParam;
import com.yonyou.sto.modules.ims.service.ImsTaxItemPartyRelationService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author aegon
 * @since 2020-12-01
 */
@RestController
@Api(tags = "ImsTaxItemPartyRelationController", description = "组织税目关联")
@RequestMapping("/server/ims/imsTaxItemPartyRelation")
public class ImsTaxItemPartyRelationController {

    @Resource
    ImsTaxItemPartyRelationService imsTaxItemPartyRelationService;

    @ApiOperation(value = "税率获取组织选择框数据")
    @GetMapping(value = "/taxGetPartySelect")
    public CommonResult<List<ImsPartySelectParam>> taxGetPartySelect(@RequestParam Long taxId) {
        return CommonResult.success(imsTaxItemPartyRelationService.taxGetPartySelect(taxId));
    }

}

